<?php
// 连接数据库
$_DBLINK = mysql_connect( $_CONFIG['db']['host'], $_CONFIG['db']['user'], $_CONFIG['db']['password'] );
mysql_select_db( $_CONFIG['db']['database'], $_DBLINK );
mysql_query( 'SET NAMES \'' . $_CONFIG['db']['charset'] . '\'', $_DBLINK );
mysql_query( 'SET CHARACTER SET \'' . $_CONFIG['db']['charset'] . '\'', $_DBLINK );